package com.hx.er.service.admin.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.MessageBean;
import com.hx.er.bean.detail.MessageDetailBean;
import com.hx.er.dao.IContactDao;
import com.hx.er.service.admin.IAdminMsgService;
import com.hx.er.service.base.ErBaseService;

public class AdminMsgServiceImpl extends ErBaseService implements IAdminMsgService {

	@Autowired
	private IContactDao contactDao;
	
	@Override
	public List<MessageDetailBean> getMsgDetailAliveList(Map<String, Object> conditions) {
		return this.contactDao.getMsgDetailAliveList(conditions);
	}

	@Override
	public int getMsgDetailAliveCount(Map<String, Object> conditions) {
		return this.contactDao.getMsgDetailAliveCount(conditions);
	}

	@Override
	public MessageDetailBean getMsgDetailAliveById(long msgId) {
		return this.contactDao.getMsgDetailAliveById(msgId);
	}

	@Override
	public int ignoreMsg(MessageBean msgBean) {
		return this.contactDao.ignoreMsg(msgBean);
	}

	@Override
	public int updateMsg(MessageBean msgBean) {
		return this.contactDao.updateMsg(msgBean);
	}

	@Override
	public int reviveMsg(MessageBean msgBean) {
		return this.contactDao.reviveMsg(msgBean);
	}

	@Override
	public int replyMsg(MessageBean msgBean) {
		return this.contactDao.replyMsg(msgBean);
	}

}
